<?php
    include("handle/config.php");
	session_start();
	ob_start();
?>
<title>Quản lý chi hội</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="no" />

<link rel="stylesheet" href="styles/layout.css" type="text/css" />
<script type="text/javascript" src="js template/jquery-1.11.0.js"></script>
<script type="text/javascript" src="scripts/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="scripts/jquery.timers.1.2.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.2.1.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview.setup.js"></script>
<script type="text/javascript" src="scripts/jquery.galleryview-3.0-dev.js"></script>
<link type="text/css" rel="stylesheet" href="styles/jquery.galleryview-3.0-dev.css" />

<!-- jquery autocomplete cho ma hoi vien-->
<link type="text/css" href="css template/jquery-ui.css" rel="stylesheet"/>
<!--<script type="text/javascript" src="js template/jquery.min.js"></script>-->
<script type="text/javascript" src="js template/jquery-ui.min.js"></script>
<script>

	//autocomplete cho mã hội viên
	var mahvtim = [{ value: "", label: "" }];
	<?php
			include("handle/config.php");
			$sql = "SELECT  *  FROM HOIVIEN";
			$result=mysqli_query($con,$sql);
			while($row = mysqli_fetch_array($result))
			{
				echo "mahvtim.push({value: '".$row['MAHV']."', label: '".$row['MAHV']."'} );";
				
			}
	?>
	$(function() {
		$("#mahvtim").autocomplete({
			source: mahvtim
		});
		
	});
	// autocomplete cho tên hội viên
	var tenhvtim = [{ value: "", label: "" }];
	<?php
			include("handle/config.php");
			$sql = "SELECT  DISTINCT HOTEN  FROM HOIVIEN";
			$result=mysqli_query($con,$sql);
			while($row = mysqli_fetch_array($result))
			{
				echo "tenhvtim.push({value: '".$row['HOTEN']."', label: '".$row['HOTEN']."'} );";
				
			}
	?>
	$(function() {
		$("#tenhvtim").autocomplete({
			source: tenhvtim
		});
		
	});
</script>

<link type="text/css" href="css template/bootstrap.css" rel="stylesheet"/>
<script type="text/javascript" src="script sources/QuanLyChiHoi.js"></script>
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
</head>
<body id="top">
<!-- ####################################################################################################### -->
	<?php $qlhv ="active"; include("header.html"); ?>
	  <div class="container">
		<?php 
			switch($_GET['content'])
			{
				case "taochihoi": include("html sources/quan ly chi hoi/TaoChiHoi.html"); break; 
				case "thongtinchihoimoi": include("html sources/quan ly chi hoi/ThongTinChiHoiMoi.html"); break; 
				case "danhsachchihoi": include("html sources/quan ly chi hoi/DanhSachChiHoi.html"); break; 
			}
		?>
		</div>
		<hr/>
		<div class="wrapper col8">
			  <div id="copyright">
				<p class="fl_left">Hội Sinh Viên Trường Đại học Cần Thơ</p>
				<p class="fl_right"> Coppyright by Mai Hữu Lợi &copy; 2014 - Mọi thắc mắc liên hệ facebook:<a href='https://www.facebook.com/loi.huu.75'>Kenvin Mai</a></p>
				<br class="clear" />
			  </div>
			</div>
</body>
</html>
